package com.hsj.controller.mq;

import com.hsj.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/orders")
public class Order2MQController {
    @Autowired
    private OrderService orderService;


    @RequestMapping("{id}")
    public String order(@PathVariable  String id){
        System.out.println("开始订单");
        orderService.order(id);
        return null;
    }


}
